﻿@page
@model AdminUI.Pages.LoginModel

@section head {

    <script>

        if (top.window != window) {
            top.window.location.href = "/Login";
        }

    </script>

    <style>
        .login-image {
            background-color: #efefef;
            border-right: solid 1px #ddd;
            margin-bottom: 0 !important;
        }

            .login-image img {
                width: 160px;
                height: 160px;
                padding: 10px;
            }

        .copyright {
            color: #333;
            display: inline-block;
            text-align: center;
            vertical-align: middle;
            bottom:10px;
            position: relative;
            overflow: hidden;
            top: 0;
            left: 0;
            min-height: 32px;
        }
    </style>

}

@section body {
    <f:Panel ID="Panel1" BodyPadding="5" ShowBorder="false" Layout="VBox" BoxConfigAlign="Center" MarginTop="200" ShowHeader="false" IsViewPort="true">
        <Items>

            <f:Window ID="Window1" IsModal="true" EnableClose="false" EnableMaximize="false" MarginBottom="150" MaxWidth="500" Title="@Model.Window1Title" Layout="HBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start" Width="500">
                <Items>
                    <f:Image ID="imageLogin" ImageUrl="~/res/images/login/login_6.png" CssClass="login-image">
                    </f:Image>
                    <f:SimpleForm ID="SimpleForm1" LabelAlign="Top" BoxFlex="1" BodyPadding="30 20" ShowBorder="false" ShowHeader="false">
                        <Items>
                            @*<f:HiddenField ID="shopID" Text="@ViewBag.ShopID"></f:HiddenField>*@
                            <f:TextBox ID="tbxUserName" FocusOnPageLoad="true" Label="帐号" Required="true" ShowRedStar="true" Width="260">
                            </f:TextBox>
                            <f:TextBox ID="tbxPassword" TextMode="Password" Required="true" ShowRedStar="true" Label="密码" Width="260">
                            </f:TextBox>
                        </Items>
                    </f:SimpleForm>
                </Items>
                <Toolbars>
                    <f:Toolbar Position="Bottom">
                        <Items>
                            @*<f:ToolbarText Text="管理员账号: admin/admin"></f:ToolbarText>*@
                            <f:ToolbarFill></f:ToolbarFill>
                            <f:Button ID="btnSubmit" Icon="LockOpen" Type="Submit" _ValidateForms="SimpleForm1" OnClickFields="SimpleForm1" OnClick="@Url.Handler("btnSubmit_Click")" Text="登录"></f:Button>
                        </Items>
                    </f:Toolbar>
                </Toolbars>
            </f:Window>

            <f:ContentPanel ShowHeader="false" ShowBorder="false" CssClass="copyright" Layout="VBox">
                <Content>
                    <div class=" sitewidget-content">
                        <div class="sitewidget-bd fix hasOverflowX ">
                            版权所有&nbsp;©&nbsp;2023 杭州巴南科技有限公司&nbsp;
                            备案号：&nbsp;<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">浙ICP备15019637号-1&nbsp;</a>&nbsp;
                            </br>
                            建议您使用Chrome、Firefox、Edge、IE10及以上版本和360等主流浏览器浏览本网站
                        </div>| 
                    </div> 
                </Content>
            </f:ContentPanel>
        </Items>
    </f:Panel>>

}